// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import iView from 'iview';
import Resource from 'vue-resource';
import { cookieUtil } from './js/util'

// style
import 'iview/dist/styles/iview.css';
import './styles/reset.css'

Vue.use(iView);
Vue.use(Resource);
Vue.config.productionTip = false;

// 拦截器设置 header { Authorization : 'Token xxxxxxxxxxxxxxxxxxxxxx' }

// 导航守卫 监听登录与否响应跳转

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
